package com.example.springbootdemo2023.bus.role.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springbootdemo2023.bus.account.dto.Account;
import com.example.springbootdemo2023.bus.role.dto.RoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootdemo2023.bus.role.dto.RoleUserListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-03-28
 */
@Mapper
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    List<Account> checkUsersIsHave(List userList);

    IPage<RoleUserListVO> pages(IPage<RoleUserListVO> page, Account user,@Param("roleID") String roleID);
}
